#include "Runnable.h"

namespace sh
{
class RunnableData
{
public:
    RunnableData()
        : isAutoDelete(true)
    {}
    bool isAutoDelete;
};
}
sh::Runnable::Runnable()
{
    d = std::unique_ptr<RunnableData>(new RunnableData());
}
sh::Runnable::~Runnable() = default;

bool sh::Runnable::autoDelete() const
{
    return d->isAutoDelete;
}
void sh::Runnable::setAutoDelete(bool autoDelete)
{
    d->isAutoDelete = autoDelete;
}
